import { createRouter, createWebHistory } from 'vue-router'
import { isMobileTerminal } from '@/utils/flexble'

import mobilerRoutes from './modules/mobile-route'
import pcRoutes from './modules/pc-route'

//创建vueRouter实例
const router = createRouter({
  history: createWebHistory(),
  routes: isMobileTerminal.value ? mobilerRoutes : pcRoutes
})

export default router
